package com.example.feign.controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author wangjinlong
 * @date 2022/1/26 15:19
 */
@Component
@FeignClient(name = "nacos-provider", fallback = RemoteClientImpl.class)
public interface RemoteClient {

    @GetMapping("myrest/provider/get")
    String getHello();
}
